<template>
    <el-container style="text-align: center">
        <el-header style="border-bottom: 1px #ccc solid;">
            <router-link to="/" style="color: black;font-size: 25px;line-height: 50px;font-weight: bold">小九的工具箱
            </router-link>
        </el-header>
        <el-main>
            <el-row>

                <el-input type="textarea" v-model="link"
                          :rows="10" placeholder="请输入抖音直播链接地址"></el-input>
            </el-row>
            <el-row style="margin-top: 30px">
                <el-button type="primary" style="width: 200px" @click="openGameMaTong">
                    抽水马桶
                </el-button>
            </el-row>
        </el-main>
    </el-container>
</template>

<script>

    export default {
        name: 'douyinLive',
        data() {
            return {
                link: 'https://live.douyin.com/752648699563'
            }
        },
        beforeCreate() {
        },
        methods: {
            openGameMaTong() {
                let link = this.link ? this.link.trim() : '';
                if (link) {
                    this.$router.push({name: 'douyinLiveMatong', params: {link}})
                } else {
                    this.$message.error('请输入抖音直播链接地址');
                }
            }
        },
        beforeDestroy() {

        }
    }
</script>

<style>

</style>
